package com.celesea.auth.position.vo;

import com.celesea.auth.position.v1.controller.request.PageRequest;
import com.celesea.framework.dao.TenantFilterAdapter;
import com.celesea.framework.util.Const;
import com.celesea.framework.util.EnvUtil;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-26 23:40
 */
public class PositionFilter extends TenantFilterAdapter {

    private String deptId;
    private String py;
    private List<String> parentIds;
    private List<String> childrenIds;
    private Byte deleteFlag;
    private Byte statusFlag;

    public PositionFilter() {
        super(EnvUtil.getTenantId());
        this.deleteFlag = Const.DeleteFlag.NORMAL;
    }

    public PositionFilter(PageRequest request) {
        super(EnvUtil.getTenantId());
        this.deptId = request.getDeptId();
        this.py = request.getPy();
        this.statusFlag = request.getStatusFlag();
        this.deleteFlag = Const.DeleteFlag.NORMAL;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Byte getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Byte deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public List<String> getParentIds() {
        return parentIds;
    }

    public void setParentIds(List<String> parentIds) {
        this.parentIds = parentIds;
    }

    public List<String> getChildrenIds() {
        return childrenIds;
    }

    public void setChildrenIds(List<String> childrenIds) {
        this.childrenIds = childrenIds;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }
}


